package com.six.work.services;

import com.six.work.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PositionServices {
    List<Position> findAllPosition();

    List<Position> findPositionAndCompany();

    List<Position> findPositionAndCompany1();

    List<CompanyAndPositionView> findPositionAndCompany2();

    List<PositionView> finPositionByStateAndcomName(String positionName, Integer state_id);

    List<PositionView> findPositionByName(String positionName);

    String updatePositionState(Integer position_id);

    String updatePositionState1(Integer position_id);

    Position SelectPositionByID(Integer position_id);

    //前端连数据库
    List<Position> findAllPosition1();

    //按工作地点查询
    List<Position> findPositionByAdd(String job_add);

    //按细分方向查询
    List<Position> findPositionByType(String job_type);

    //按薪资查询

    List<Position> findPositionByPay(String job_pay);

//发布职位
    Integer insertPosition(Position position);

    List<Position> findAllPositions();

    List<Position> findComJobType();

    List<CompanyState> findSuccessCom();




    //前端页面间Aworkposition传值到positionItem(试)
    List<CompanyAndPositionView> SelectPositionByID2(Integer position_id);

    //11——13
    List<Position> SelectPositionByID3(Integer company_id);

    //今日新增
    Integer FindTodayCom();

    //本月新增
    Integer FindMonthCom();

    //职位 饼图
    List<Position> sumJobType();

    //热门投递职位top 10
    List<Position> jobTop10();


    //查看公司发布的职位
    List<Position> ComPosition(Integer company_id);


    Integer DelPositionByID(Integer position_id);
}

